package com.shanyin.framework.api.server;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/***
 ** @category 请用一句话来描述其用途...
 ** @author qing.yunhui
 ** @email: 280672161@qq.com
 ** @createTime: 2018年5月25日下午10:03:16
 **/
//消费者端加入服务发现注解
@EnableDiscoveryClient
@SpringBootApplication
public class Application {
	
	static Logger logger=LoggerFactory.getLogger(Application.class);
	
	@Bean
	public RestTemplate restTemplate() {
		return new RestTemplate();
	}
	public static void main(String[] args) {
		logger.info("=================>api消费端启动中....");
		SpringApplication.run(Application.class, args);
		logger.info("=================>api消费端启动完毕....");
	}


}
